﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Zgq.CommonTools
{
    public class C5SqlModelAttribute : Attribute
    {
        /// <summary>
        /// 字段名称
        /// </summary>
        public string FieldName { get; set; }
        /// <summary>
        /// 主键
        /// </summary>
        public bool PrimaryKey { get; set; }
        /// <summary>
        /// 自增长
        /// </summary>
        public bool AutoIncrement { get; set; }
        /// <summary>
        /// 不修改
        /// </summary>
        public bool IsNotModif { get; set; }
        /// <summary>
        /// 时间戳
        /// </summary>
        public bool IsTimeStamp { get; set; }
        /// <summary>
        /// 数据字段类型
        /// </summary>
        public string DbType { get; set; }
        /// <summary>
        /// 最大长度
        /// </summary>
        public int MaxLength { get; set; }
        /// <summary>
        /// 数据长度
        /// </summary>
        public byte Precision { get; set; }
        /// <summary>
        /// 小数长度
        /// </summary>
        public byte Scale { get; set; }
    }
}
